﻿<!--Copyright 2010 http://tv4home.codeplex.com
This file is part of TV4Home.Client.TVViewer.
TV4Home.Client.TVViewer is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
TV4Home.Client.TVViewer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with TV4Home.Client.TVViewer. If not, see http://www.gnu.org/licenses/-->
    <UserControl x:Class="TV4Home.Client.Desktop.TVViewer.Controls.MediaPlayer"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="250" d:DesignWidth="800" xmlns:my="clr-namespace:TV4Home.Client.Desktop.TVViewer.Controls">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Assets/CoreStyles.xaml"/>
                <ResourceDictionary Source="../Assets/CommonResources.xaml"/>
                <ResourceDictionary Source="../Assets/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>           
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid x:Name="grdRoot">
        <MediaElement x:Name="meTVViewer" LoadedBehavior="Manual" Margin="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
        <Grid Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
            <Grid.RowDefinitions>
                <RowDefinition Height="100" />
                <RowDefinition />      
            </Grid.RowDefinitions>
     
            <Border Grid.Row="0" x:Name="brdCtrlBtn" Margin="0,10,0,0" HorizontalAlignment="Center" MinWidth="671" MaxWidth="671" MinHeight="74" MaxHeight="74" Visibility="Hidden" VerticalAlignment="Top">
                <Grid Background="WhiteSmoke" Opacity="0.8">
                    <Rectangle x:Name="rctCtrlBtn" Fill="Transparent" Stroke="#FF2D2D2D"  VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
                        <Rectangle.Effect>
                            <DropShadowEffect Opacity="0.695" BlurRadius="14" ShadowDepth="0" Color="#FF434343" />
                        </Rectangle.Effect>
                    </Rectangle>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="37" />
                            <RowDefinition Height="37" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="306*" />
                            <ColumnDefinition Width="98*" />
                            <ColumnDefinition Width="98*" />
                            <ColumnDefinition Width="98*" />
                            <ColumnDefinition Width="98*" />
                        </Grid.ColumnDefinitions>
                        <Label Margin="6,6,6,6" Name="lblProgramTitle" Style="{StaticResource ResourceKey=SegoeUILabel}" />
                        <Button Name="btnShowDescription" Content="Details" Margin="6,6,6,6" Click="btnShowDescription_Click" Grid.Column="1" Style="{StaticResource ResourceKey=SemiTransparentButton}" />
                        <Button Name="btnPlayPause" Content="Play" Margin="6" Click="btnPlayPause_Click" Grid.Column="2" Style="{StaticResource ResourceKey=SemiTransparentButton}" />
                        <Button Name="btnStop" Content="Stop" Margin="6,6,6,6" Click="btnStop_Click" Grid.Column="3" Style="{StaticResource ResourceKey=SemiTransparentButton}"/>
                        <Slider Name="sldVolume" Margin="6" Grid.Column="4" Value="{Binding Path=Volume, ElementName=meTVViewer}" Maximum="100" />
                        <!--<Slider Name="sldVideo" Margin="6,6,6,6" Grid.Row="1" Grid.ColumnSpan="5" Value="{Binding Path=Position,ElementName=meTVViewer,Converter={StaticResource DTSConverter}}" Maximum="{Binding Path=NaturalDuration,ElementName=meTVViewer}"  />-->
                        
                    </Grid>
                </Grid>
            </Border>      
            <Border x:Name="brdDetails" HorizontalAlignment="Left" VerticalAlignment="Top" Visibility="Hidden" MinWidth="300"  MaxWidth="400" Margin="20,10,0,0" Grid.Row="1">
                <Grid x:Name="grdDetails" Background="WhiteSmoke" Opacity="0.6" >
                    <Rectangle x:Name="details_overlay" Fill="Transparent" Stroke="#FF2D2D2D" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                        <Rectangle.Effect>
                            <DropShadowEffect Opacity="0.695" BlurRadius="14" ShadowDepth="0" Color="#FF434343" />
                        </Rectangle.Effect>
                    </Rectangle>
                    <GroupBox Name="gbDetails" Header="Description" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,5,5,5" Foreground="Black" Panel.ZIndex="1" BorderBrush="#00000000" BorderThickness="0">
                        <Grid Margin="3,3,3,3">                      
                            <TextBox Margin="8,6,6,6" Name="tbProgramDescription" TextWrapping="Wrap" IsReadOnly="True" HorizontalScrollBarVisibility="Auto" Foreground="White" Background="#00000000"/>
                        </Grid>
                    </GroupBox>
                </Grid>
            </Border>          
        </Grid>        
    </Grid>
</UserControl>
